import fs from "fs";

const ini = require('ini');
let configContent = fs.readFileSync('config.ini', 'utf-8');
let config = ini.parse(configContent);


export const IniUtils = {
  get:(name) => {
    return config[name]
  },
  set: (name, value) => {
    config[name] = value
    fs.writeFileSync('config.ini', ini.stringify(config), 'utf-8');
  }
}